/*
 * @Description:
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2023-10-19 17:45:02
 * @LastEditors: Seven
 * @LastEditTime: 2023-10-19 17:58:55
 */
import React, { memo } from "react";
import { Modal } from "antd";
const DetailModal = memo(
  ({ isModalDetailOpen, handleDetailCancel, yearInfo }) => {
    return (
      <div>
        <Modal
          title="详情"
          open={isModalDetailOpen}
          onOk={handleDetailCancel}
          onCancel={handleDetailCancel}
        >
          <div>
            <div>年计划描述：{yearInfo?.planDesc} </div>
            <div>年限：{yearInfo?.limitYear} </div>
            <div>部门：{yearInfo?.dept} </div>
            <div>车间：{yearInfo?.workshop} </div>
            <div>状态：{yearInfo?.status} </div>
          </div>
        </Modal>
      </div>
    );
  }
);

export default DetailModal;
